using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Security;
using System.Configuration;

namespace NiSis
{
    public partial class NiSis : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bool isAdmin= Roles.IsUserInRole("Administrator");
            //lkReport.Visible = isAdmin;
            //lkConsolidamento.Visible = isAdmin;
            //lkAmministrazione.Visible = isAdmin;
            //lkAmministrazione.NavigateUrl = ConfigurationManager.AppSettings["WsatLocation"] ?? string.Empty;
        }
        public void MsgBox(string msg)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "msgBox", String.Format("alert('{0}');", msg), true);
        }
    }
}
